<?php
/*
if(isset($formObjects) && !empty($formObjects)){
foreach($formObjects as $f){
	$err['error'][$f] = form_error($f);
}
print_r($err);
//echo json_encode($err);
}
*/
$result['error'] = true;
$result['error_msg'] = array(validation_errors());
echo json_encode($result);
?>